package com.thb.pay.db.utils;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.thb.pay.core.db.BasePage;

/**
 * @Description mybatis plus page疯转 工具类
 * @Author lucky
 * @data 2019/7/21 23:35
 */
public class PageUtils {

    public static <T> Page<T> buildPage(BasePage basePage) {
        Page<T> page = new Page<>(basePage.getPageNumber(), basePage.getPageSize());
        return page;
    }
}
